/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/2/9
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/2/9       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.composite;

import java.util.ArrayList;
import java.util.List;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class Department extends OrganizationComponent {

    List<OrganizationComponent> organizationComponents = new ArrayList<>();

    public Department(String name, String des) {
        super(name, des);
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public String getDes() {
        return super.getDes();
    }

    @Override
    protected void print() {
        System.out.println(getName());
    }

}
